package com.mata.worktime.entity.work;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mata.worktime.entity.BaseEntity;

import java.util.Date;


/**
 * 工时
 *
 * @author earthchen
 * @date 2018/9/29
 **/
@TableName("t_work_hour")
public class WorkHour extends BaseEntity<WorkHour>
{
    @JsonSerialize(using = ToStringSerializer.class)
    private Long projectId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long projectTypeId;

    private String userId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date workDate;

    private Float workHours;

    private String delFlag;

    private String reviewFlag;

    private String remark;

    public Long getProjectId()
    {
        return projectId;
    }

    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getProjectTypeId()
    {
        return projectTypeId;
    }

    public void setProjectTypeId(Long projectTypeId)
    {
        this.projectTypeId = projectTypeId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public Date getWorkDate()
    {
        return workDate;
    }

    public void setWorkDate(Date workDate)
    {
        this.workDate = workDate;
    }

    public Float getWorkHours()
    {
        return workHours;
    }

    public void setWorkHours(Float workHours)
    {
        this.workHours = workHours;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public String getReviewFlag() {
        return reviewFlag;
    }

    public void setReviewFlag(String reviewFlag) {
        this.reviewFlag = reviewFlag;
    }

    @Override
    public String toString() {
        return "WorkHour{" +
                "projectId=" + projectId +
                ", projectTypeId=" + projectTypeId +
                ", userId=" + userId +
                ", workDate=" + workDate +
                ", workHours=" + workHours +
                ", delFlag='" + delFlag + '\'' +
                ", reviewFlag=" + reviewFlag +
                ", remark='" + remark + '\'' +
                '}';
    }
}
